package com.gs.wechatdemo.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import androidx.annotation.NonNull;

public abstract class BaseDialog extends Dialog {


    public BaseDialog(@NonNull Context context, int themeResId) {
        super(context, themeResId);
    }

    public abstract void refreshView();

    public abstract void initView();

    public abstract int getLayoutId();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(this.getLayoutId());
        initView();
        refreshView();
    }
}
